package util {
	
	public class GeomUtil {

		public function GeomUtil() {
		}
		
		public static function distance(x1:Number, y1:Number, x2:Number, y2:Number):Number {
			return Math.sqrt(Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2));
		}
		
		public static function distance2(x1:Number, y1:Number, x2:Number, y2:Number):Number {
			return Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2);
		}
		
		public static function getAngle(x1:Number, y1:Number, x2:Number, y2:Number):Number {
			return Math.atan2(y2- y1, x2 - x1);
		}
	}
}